package cn.cvs.dao.impl;

import cn.cvs.dao.SysUserMapper;
import cn.cvs.pojo.SysUser;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

/**
 * @Author: lh
 * @Date: 2023/5/1 14:02
 * @Package:cn.cvs.dao.impl
 */

public class SysUserMapperImpl extends SqlSessionDaoSupport implements SysUserMapper {
    private SqlSessionTemplate sqlSession;
    @Override
    public List<SysUser> selectSysUserList(SysUser sysUser) {
//        return sqlSession.selectList("cn.cn.cvs.dao.SysUserMapper.selectSysUserList",sysUser);

        return this.getSqlSession().selectList("cn.cn.cvs.dao.SysUserMapper.selectSysUserList",sysUser);
    }

    /*public SqlSessionTemplate getSqlSession(){
        return sqlSession;
    }

    public void setSqlSession(SqlSessionTemplate sqlSession){
        this.sqlSession = sqlSession;
    }*/


}
